package com.longe.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * 这个类中演示自定义过滤器
 */
@Controller
@RequestMapping("customize")
public class CustomizeController {

    @RequestMapping("detail")
    public String detail(){

        return "/customize/detail";
    }

    @ResponseBody
    @RequestMapping("add")
    public String add(){

        return "customize_add";
    }

    @ResponseBody
    @RequestMapping("update")
    public String update(){

        return "customize_update";
    }

    @ResponseBody
    @RequestMapping("delete")
    public String delete(){

        return "customize_delete";
    }

    @ResponseBody
    @RequestMapping("query")
    public String query(){

        return "customize_query";
    }
}
